{% extends "bets/base.html" %}
{% load i18n %}

{% block search %}

          <form action="{% url 'bets:search_view' %}" method="get" class="form-search m-search">
            <input type="text" name="q" placeholder="Type to search" required="required" class="pull-right span3">
          </form>

{% endblock %}

{% block content %}

<div class="row-fluid">

  <div class="span9">
  
  {% block center-content %} {% endblock %}

  </div>

  <div class="span3">
  
    <div class="well">
      <h3 class="muted">Top 5 players</h3>
      <ul class="nav nav-list">
	      {% for player in top_players %}
		        <li>
		           <a href="{% url 'bets:player_profile_view' player.team.game.name player.id %}">{{ player.name }}</a>
		        </li>
		      	<hr class="dotted">
	      {% endfor %}
      </ul>
    </div>
    
    <div class="well">
      <h3 class="muted">Top 5 teams</h3>
      <ul class="nav nav-list">
	      {% for team in top_teams %}
		        <li>
		          <a href="{% url 'bets:team_profile_view' team.game.name team.id %}">{{ team.name }}</a>
		        </li>
		      	<hr class="dotted">
	      {% endfor %}
      </ul>
    </div>
    
  </div>

</div>

<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'testerslab'; // required: replace example with your forum shortname

/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
  var s = document.createElement('script'); s.async = true;
  s.type = 'text/javascript';
  s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
  (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

{% endblock %}
